package com.qy.service.impl;

import com.qy.dao.MemberOrderMapper;
import com.qy.model.Member;
import com.qy.model.MemberOrder;
import com.qy.service.MemberOrderService;
import com.qy.base.core.AbstractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


/**
 * Created by zaq on 2018/07/10.
 */
@Service
@Transactional
public class MemberOrderServiceImpl extends AbstractService<MemberOrder> implements MemberOrderService {
    @Resource
    private MemberOrderMapper qyMemberOrderMapper;

    @Override
    public List<MemberOrder> selectMemberOrderList(MemberOrder memberOrder) {
        return qyMemberOrderMapper.selectMemberOrderList(memberOrder);
    }

    @Override
    public List<MemberOrder> selectMemberOrderByUserId(Member member) {
        return qyMemberOrderMapper.selectMemberOrderByUserId(member);
    }
}
